package com.skjanyou.applicationcase.mapper;

import java.util.List;

import com.skjanyou.applicationcase.bean.Menu;
import com.skjanyou.db.mybatis.anno.DDL.Insert;
import com.skjanyou.db.mybatis.anno.DDL.Select;
import com.skjanyou.db.mybatis.anno.DDL.SqlParameter;
import com.skjanyou.db.mybatis.anno.Mapper;


@Mapper
public interface MenuMapper {
	@Select("select * from menu where user_id = #user_id#")
	public List<Menu> selectUserMenuList( @SqlParameter("user_id") String userId );
	
	@Insert("insert menu( menu_id, menu_name,user_id ) values( #menu_id#,#menu_name#,#user_id# )")
	public int insert( Menu menu );
}
